package com.zhazha.earlybird;




import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;



public class AlarmRecevierActivity extends BroadcastReceiver {  
	  
    /** 
     * called when the BroadcastReceiver is receiving an Intent broadcast. 
     */  
	  public static final int NOTIFICATION_ID=1;  
    @Override  
    public void onReceive(Context context, Intent intent) {  
          
        /* start another activity - MyAlarm to display the alarm */ 
    	/* Bundle extras=intent.getExtras();
    	 int count=0;
    	 if(extras!=null)
  	     {
  	    	 count=extras.getInt("count");
  	    	
  	    	 
  	     }*/
        intent.setFlags(Intent.FLAG_ACTIVITY_NEW_TASK);  
        intent.setClass(context, NotifacationAlarmActivity.class);  
      //  intent.putExtra("id", count);
	   
        context.startActivity(intent); 
    	
 	   // Toast.makeText(context, count+"", Toast.LENGTH_SHORT).show();
    //	 Toast.makeText(context, "short alarm", Toast.LENGTH_LONG).show();
 	   
 
    }  
  
}  